//
//  ViewController.m
//  111
//
//  Created by WuXushun on 16/2/20.
//  Copyright © 2016年 wuxushun. All rights reserved.
//

#import "ViewController.h"
#import "AddressList.h"
#import "AddressSelector.h"

@interface ViewController ()<AddressSelectorDelegate>

@property (nonatomic, strong) AddressSelector *selector;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (selector == nil) {
        
        selector = [[AddressSelector alloc]initWithFrame:defaultRect withData:nil];
        selector.delegate = self;
        
    }
    

}
@synthesize selector;
- (IBAction)btnActive:(id)sender {
    
    [selector show];

    
}

-(void)addressSelectorDidSelected:(UIView *)addressSelector withSelectedData:(NSArray *)data{

    NSLog(@"%@",data);

}


@end
